<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head lang="en" th:replace="include/common/common :: commonHeader">
    <footer th:include="include/common/common :: layUiResource"></footer>
    <!--    <footer th:include="include/common/common :: bootstrapResource"></footer>-->
    <style>
        body{padding:10px; font-size:14px; background:#fff; width:95%; margin:0 auto; font-size:14px; line-height:20px; overflow:hidden;}
        p{margin-bottom:10px;}
        input{border:1px solid #999; padding:5px 10px; margin:0 10px 10px 0;}
    </style>

    <script>
        layui.config({
            base: '/staticResource/layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index' , 'laytpl'] , function () {
            var layer = layui.layer
                ,element = layui.element
                ,admin = layui.admin
                ,index = parent.layer.getFrameIndex(window.name)
                ,$ = layui.jquery;

            element.render();

            $(document).ready(function () {
                $('button').click(function () {
                    let btnData = $(this).attr('blue-data') , btnTips = $(this).attr('blue-tips');
                    $.fn.blueJs.tools.active['layerOpen'].call(this , btnData , btnTips);
                    parent.layer.close(index);
                });
            });
        });
    </script>
</head>
<body>
<div class="layui-btn-container" id="layTipsButtons">
    <button class="layui-btn layui-btn-primary" data-type="add" blue-data="/a/depItem/form?isNewRecord=true" blue-tips="部门表单">新增</button>
    <button class="layui-btn layui-btn-primary" data-type="parentPopup">在父层弹出一个层</button>
    <button class="layui-btn layui-btn-primary" data-type="setParent">给父页面传值</button>
    <button class="layui-btn layui-btn-primary" data-type="close">在内部关闭iframe</button>
</div>
</body>
</html>